package com.teamone.etl.apimanager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teamone.etl.apimanager.dao.ApiRecordDao;
import com.teamone.etl.apimanager.entity.ApiRecord;
import com.teamone.etl.apimanager.request.ApiRecordQuery;
import com.teamone.etl.apimanager.service.ApiRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 接口调用记录表(ApiRecord)表服务实现类
 *
 * @author makejava
 * @since 2021-01-20 18:32:05
 */
@Service("apiRecordService")
@Transactional(rollbackFor = Exception.class)
public class ApiRecordServiceImpl extends ServiceImpl<ApiRecordDao, ApiRecord> implements ApiRecordService {

    @Override
    public List<ApiRecord> selectAll(ApiRecordQuery apiRecordQuery) {
        return baseMapper.selectAll(apiRecordQuery);
    }

    @Override
    public List<ApiRecord> selectByApiSourceId(Integer apiSourceId) {
        return baseMapper.selectByApiSourceId(apiSourceId);
    }
}